package com.bee.user.client;

import com.bee.user.client.dto.UserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author Damin.yang
 * @date 2019/08/23 14:13
 */
@FeignClient(value = "bee-user-service")
public interface UserClient {

    /**
     * 根据账号或手机号查找用户
     * @param username
     * @return
     */
    @PostMapping("/client/user/findUser")
    UserDTO queryUser(@RequestParam("username") String username);
}
